<?php
# Read image in base64 format and output it (assuming jpg)
$file = fopen("img.base64", "r");
$encdata = fread($file, filesize("img.base64"));

$data = base64_decode($encdata);

header('Content-type: image/jpeg');
print($data);

?>
